﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SST_BL;
using System.Data;

namespace TCU
{
    public partial class Perfil : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                CargarPerfil();
        }
    
        private void CargarPerfil() {
            string user = Request.ServerVariables["REMOTE_USER"].ToString();
            int InformaticoID = MainBL.GetInformaticoID(user.Substring(user.IndexOf("\\") + 1));
            gvPerfil.DataSource = MainBL.InformacionPerfil(InformaticoID);
            gvPerfil.DataBind();
        }
    
    }
}